import Vue from 'vue'
import App from './App.vue'
import './assets/index.less'
// 将自动注册所有组件为全局组件
import dataV from '@jiaminghi/data-view'
import AMap from 'vue-amap';
import vueAxios from 'vue-axios'
import axios from 'axios'
import echarts from "echarts"
import fn from '../utils'
Vue.prototype.$echarts = echarts
Vue.prototype.$Fn = fn
Vue.use(AMap);
Vue.use(vueAxios, axios)
// Vue.prototype.$axios = axios
// axios.defaults.baseURL = '/'
// axios.defaults.headers.post['Content-Type'] = 'application/json';
// 初始化vue-amap
AMap.initAMapApiLoader({
  // 高德key
  key: '8dbf11a5261cf1ef0b1df2a3fd1403c3',
  // 插件集合 （插件按需引入）
  plugin: ['AMap.Geolocation']
});
Vue.config.productionTip = false

Vue.use(dataV)

new Vue({
  render: h => h(App),
}).$mount('#app')
